<h2>添加订单</h2>
<table class="table table-striped table-bordered table-hover table-nowrap">
    <thead>
    <td>来源单号</td>
    <td>货架号</td>
    </thead>
    {volist name="shelf" id="s"}
    <tr>
        <td>{$s.from_express_no}</td>
        <td>{$s.shelf_number}</td>

    </tr>
    {/volist}

</table>


<form id="add-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
<!---delivery_weight--->
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('User_id')} ID:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-user_id" readonly data-rule="required" class="form-control" name="row[user_id]" type="text" value="{$user_id}">
        </div>
    </div>


    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('来源运单号')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-from_express_no" readonly data-rule="required"  class="form-control" name="row[from_express_no]" type="text" value="{$from_express_no}">
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('订单重量')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c_delivery_weight" data-rule="required" class="form-control" name="row[delivery_weight]" type="text" value="">
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('货架号')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c_shelf_number" data-rule="required" class="form-control" name="row[shelf_number]" type="text" value="">
        </div>
    </div>

    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-success btn-embossed ">{:__('OK')}</button>
        </div>
    </div>
</form>
<script type="text/javascript">
    document.getElementById("c_delivery_weight").focus();
</script>